package community.hospital.entity.request;

import community.hospital.common.Add;
import community.hospital.common.BaseIndex;
import community.hospital.common.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @Author：ydj
 * @Date：2023/1/26 14:36
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RoleRequest extends BaseIndex implements Serializable  {
    private static final long serialVersionUID = 5439619947366827699L;

    /**
     * 角色名
     */
    @NotBlank(groups = {Add.class, Update.class}, message = "角色名不能为空")
    private String roleName;

    /**
     * 角色码
     */
    @NotBlank(groups = {Add.class, Update.class},message = "角色码不能为空")
    private String roleCode;

    private List<Long> menuId;
}
